package com.meilai.project.service.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meilai.project.dto.workflow.WorkFlowConditionForDepJobDTO;
import com.meilai.project.entity.system.UserDepartmentRelation;
import com.meilai.project.mapper.system.UserDepartmentRelationMapper;
import com.meilai.project.service.system.UserDepartmentRelationService;
import com.meilai.project.vo.system.WebUserDepartmentRelationByUserIdVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 张驰
 * @date 2020/11/24 16:01
 */
@Service
public class UserDepartmentRelationServiceImpl extends ServiceImpl<UserDepartmentRelationMapper, UserDepartmentRelation> implements UserDepartmentRelationService {

    @Override
    public Integer countUserRelationByDepartmentId(List<Long> department_ids) {
        return baseMapper.countUserRelationByDepartmentId(department_ids);
    }

    @Override
    public List<WebUserDepartmentRelationByUserIdVO> getWebVOByUserId(Long user_id) {
        return baseMapper.getWebVOByUserId(user_id);
    }

    @Override
    public List<WebUserDepartmentRelationByUserIdVO> getWebVOByUserIds(List<Long> user_ids) {
        return baseMapper.getWebVOByUserIds(user_ids);
    }

    @Override
    public List<WorkFlowConditionForDepJobDTO> getDepJobForWorkFlow() {
        return baseMapper.getDepJobForWorkFlow();
    }
}
